package com.pzb.page.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.page.mapper.PgPageItemNoticeMapper;
import com.pzb.page.domain.PgPageItemNotice;
import com.pzb.page.service.IPgPageItemNoticeService;

/**
 * 公告提示Service业务层处理
 * 
 * @author pzb
 * @date 2021-10-09
 */
@Service
public class PgPageItemNoticeServiceImpl implements IPgPageItemNoticeService 
{
    @Autowired
    private PgPageItemNoticeMapper pgPageItemNoticeMapper;


    /**
     * 新增公告提示
     * 
     * @param pgPageItemNotice 公告提示
     * @return 结果
     */
    @Override
    public int insertPgPageItemNotice(PgPageItemNotice pgPageItemNotice)
    {
        return pgPageItemNoticeMapper.insertPgPageItemNotice(pgPageItemNotice);
    }

    /**
     * 根据模块id查询
     *
     * @param itemId 主键
     * @return 结果
     */
    @Override
    public PgPageItemNotice selectPgPageItemNoticeByItemId(Long itemId) {
        return pgPageItemNoticeMapper.selectPgPageItemNoticeByItemId(itemId);
    }

    /**
     * 根据模块id查询
     *
     * @param itemId 主键
     * @return 结果
     */
    @Override
    public int deleteNoticeByItemId(Long itemId) {
        return pgPageItemNoticeMapper.deleteNoticeByItemId(itemId);
    }
}
